assume cs:code

a segment
		db 1,2,3,4,5,6,7,8
a ends

b segment
		db 1,2,3,4,5,6,7,8
b ends

c segment
		db 0,0,0,0,0,0,0,0
c ends

code segment

	start:
		mov ax,a
		mov ds,ax	;指向a段
		mov ax,b
		mov ss,ax	;指向b段
		mov ax,c
		mov es,ax	;指向c段
		
		mov bx,0	;偏移量初始化为0
		mov cx,8	;设置循环计数寄存器
		
	s:
		mov al,ds:[bx]
		add al,ss:[bx]
		mov es:[bx],al
		inc bx	;偏移量+1
		loop s
		
		mov ax,4c00h
		int 21h
		
code ends
end start